package cn.itcast.bos.action;

import java.util.List;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

import cn.itcast.bos.domain.Function;

@Controller
@Scope("prototype")
public class FunctionAction extends BaseAction<Function> {

	//获取权限信息列表
	public String list(){
		List<Function> list = functionService.findAll();
		this.writeListToJson(list, new String[]{"parentFunction","children","roles"});
		return NONE;
	}
	
}
